<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('PC图片(1920*620)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-tpic_image" data-rule="required" class="form-control" size="50" name="row[tpic_image]" type="text" value="{$row.tpic_image}" placeholder="1920*620">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-tpic_image" class="btn btn-danger plupload" data-url="ajax/file" data-input-id="c-tpic_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-tpic_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-tpic_image" class="btn btn-primary fachoose" data-input-id="c-tpic_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-tpic_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-tpic_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('手机端图片(750*900)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-smallpic_image" class="form-control" size="50" name="row[smallpic_image]" type="text" value="{$row.smallpic_image}" placeholder="750*900">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-smallpic_image" class="btn btn-danger plupload" data-url="ajax/file" data-input-id="c-smallpic_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-smallpic_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-smallpic_image" class="btn btn-primary fachoose" data-input-id="c-smallpic_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-smallpic_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-smallpic_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fromlist')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-fromlist" data-rule="required" class="form-control selectpicker" name="row[fromlist]">
                {foreach name="fromlistList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.fromlist"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Des')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-des" class="form-control" name="row[des]" type="text" value="{$row.des}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Href')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-href" class="form-control" name="row[href]" type="text" value="{$row.href}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_showswitch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_showswitch" data-rule="required" class="form-control" name="row[is_showswitch]" type="number" value="{$row.is_showswitch}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
